package com.beici.seoserver.model;

import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;

public class comments {
    private Long comId;

    private Long nodeId;
    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String userHeader;

    private Integer userId;

    private Date comDate;

    private String comIp;

    private String comMess;

    private Integer comState;

    private Long comParent;

    public Long getComId() {
        return comId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public comments() {
    }

    @Override
    public String toString() {
        return "comments{" +
                "comId=" + comId +
                ", nodeId=" + nodeId +
                ", userName='" + userName + '\'' +
                ", userHeader='" + userHeader + '\'' +
                ", userId=" + userId +
                ", comDate=" + comDate +
                ", comIp='" + comIp + '\'' +
                ", comMess='" + comMess + '\'' +
                ", comState=" + comState +
                ", comParent=" + comParent +
                '}';
    }

    public comments(Long nodeId, Integer userId, Date comDate, String comIp, String comMess, Integer comState, Long comParent) {
        this.nodeId = nodeId;
        this.userId = userId;
        this.comDate = comDate;
        this.comIp = comIp;
        this.comMess = comMess;
        this.comState = comState;
        this.comParent = comParent;
    }

    public String getUserHeader() {
        return userHeader;
    }

    public void setUserHeader(String userHeader) {
        this.userHeader = userHeader;
    }

    public Long getNodeId() {
        return nodeId;
    }

    public void setNodeId(Long nodeId) {
        this.nodeId = nodeId;
    }

    public void setComId(Long comId) {
        this.comId = comId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getComDate() {
        return comDate;
    }

    public void setComDate(Date comDate) {
        this.comDate = comDate;
    }

    public String getComIp() {
        return comIp;
    }

    public void setComIp(String comIp) {
        this.comIp = comIp == null ? null : comIp.trim();
    }

    public String getComMess() {
        return comMess;
    }

    public void setComMess(String comMess) {
        this.comMess = comMess == null ? null : comMess.trim();
    }

    public Integer getComState() {
        return comState;
    }

    public void setComState(Integer comState) {
        this.comState = comState;
    }

    public Long getComParent() {
        return comParent;
    }

    public void setComParent(Long comParent) {
        this.comParent = comParent;
    }
}